﻿﻿using System;
using System.Collections.Generic;
using System.Web;
namespace WebMvc.App.Models.Tips.Common
{
    public class article_property
    {
		public string id=null;
		public string article_id=null;
		public string property_id=null;
		public string propvalue_id=null;
		public string name=null;
		public string valuea=null;
        public string __name__;
        public article_property(string name)
        {
            this.__name__ = name;
			this.id = string.Format("{0}.id",__name__);
			this.article_id = string.Format("{0}.article_id",__name__);
			this.property_id = string.Format("{0}.property_id",__name__);
			this.propvalue_id = string.Format("{0}.propvalue_id",__name__);
			this.name = string.Format("{0}.name",__name__);
			this.valuea = string.Format("{0}.valuea",__name__);
        }
        public article_property()
        {
			this.id = string.Format("{0}.id",__name__);
			this.article_id = string.Format("{0}.article_id",__name__);
			this.property_id = string.Format("{0}.property_id",__name__);
			this.propvalue_id = string.Format("{0}.propvalue_id",__name__);
			this.name = string.Format("{0}.name",__name__);
			this.valuea = string.Format("{0}.valuea",__name__);
        }
        public override string ToString()
        {
            if (__name__ == null)
            {
                return "article_property";
            }
            else
            {
                return string.Format("article_property as {0}",__name__);
            }
        }
    }
}